<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
	<style>
		#app{
			position: absolute;
			left: 0px;
			top: 0px;
			width: 100px;
			height: 200px;
			background-color: pink;
		}
	</style>
</head>
<body>
<script src='http://cdn.jsdelivr.net/vue/1.0.26/vue.js'></script>
<script src='https://cdn.jsdelivr.net/vue.router/0.7.10/vue-router.min.js'></script>
<div id="root">
	<div id='app' v-drag>拖拽</div>	
</div>
<script>
	var drag = require('drag.js')
	Vue.directive('drag',drag);
	var vm = new Vue({
		el : '#root',
		data : {

		}
	})
</script>
</body>
</html>